/**
 * Created by vasil on 11/6/14.
 */
angular.module('MyApp')
 .factory('users', ['$http', function ($http) {
        var users = [];
        return {
            all : function () {
                return $http.get('/comverse/users/all');
            },
            add: function(data) {
                return $http.post('/comverse/users/add', data);
            },
            getGenderList: function() {
                return ['male', 'female'];
            }

        }
    }]);